FormulaFieldDefinition Object

The FormulaFieldDefinition Object provides properties and methods for retrieving information and setting options for any named formula field in a report.

FormulaFieldDefinition Object Properties

Property Description Read/ Write Restriction in
event handler

FormulaField
Name

String. Gets the formula field name as it appears in the RDC Dataview Panel.

Read only

None

Kind

CRFieldKind. Gets what kind of field (for example, database, summary, formula, etc.).

Read only

None

Name

String. Gets the unique name of the formula field in Crystal formula format as it would be referenced in the report (for example, {@ExampleFormula}).

Read only

None

NextValue

Variant. Gets the field next value.

Read only

Can be read only when top-level Report object is formatting active.

NumberOfBytes

Integer. Gets the number of bytes required to store the field data in memory.

Read only

None

Parent

Report Object. Gets reference to the parent object.

Read only

None

PreviousValue

Variant. Gets the field previous value.

Read only

Can be read only when top-level Report object is formatting active.

Text

String. Gets or sets the text of the formula. The formula text is changed immediately in the report. If you generate a report with an invalid formula, you may receive an exception error. Syntax can be Crystal Refort or Visual Basic. See Remarks below.

Read/Write

Can be written only when formatting idle.

Value

Variant. Gets the field current value.

Read only

Can be read only when top-level Report object is formatting active.

ValueType

CRFieldValueType. Gets which type of value is found in the field.

Read only

None

Remarks

Crystal Reports 8.0 supports formulas in Crystal Reports syntax and Visual Basic syntax. When setting text to a formula, the syntax is determined by the FormulaSyntax property of the parent Report Object. The default syntax is Crystal Report syntax (crCrystalSyntaxFormula).



Seagate Software IMG Holdings, Inc.
http://www.seagatesoftware.com
Support services:
http://support.seagatesoftware.com